#include "Core\SceneManager.h"
#include "Scene\MainMenu.h"
#include "GameEngine.h"

GameEngine* GameEngine::m_pInstance = 0;

__INT8 GameEngine::Init()
{
	//TODO: Init all data here
	printf("Init game engine...\n");
	MainMenu* mainMenu = new MainMenu();
	__INT8 err = mainMenu->Init();
	if (err != 0)
		return err;

	SceneManager::GetInstance()->Switch(mainMenu);
	return 0;
}

__VOID GameEngine::Destroy()
{
	GameEngine* instance = GameEngine::GetInstance();
	SAFE_DEL(instance);
	printf("Destroy game engine...\n");
	_getch();
}